/**
 * Copyright (C), 2020-2021 by colley.ma
 * File Name: Alarm.java
 * Encoding: UTF-8
 * Date: 2021年10月12日 下午3:51:12
 * History:
 */
package com.swak.frame.datarchive.notify;

import com.swak.frame.mybatis.archiver.notify.ArchiveLogMonitor;
import com.swak.frame.ump.BizAlarmAdapter;

public class AlarmArchiveLogMonitor extends ArchiveLogMonitor {

    private BizAlarmAdapter bizAlarmAdapter;

    @Override
    public void _monitor(String monitorLog) {
        super._monitor(monitorLog);
        bizAlarmAdapter.alarmTag("archive", monitorLog);
    }

    public void setBizAlarmAdapter(BizAlarmAdapter bizAlarmAdapter) {
        this.bizAlarmAdapter = bizAlarmAdapter;
    }
}
